package com.haipumi.biz.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haipumi.beans.haipumi_activity;
import com.haipumi.biz.IBackActivityBiz;
import com.haipumi.mapper.ActivityMapper;

@Service("backActivityBiz")
public class BackActivityBizImpl implements IBackActivityBiz {

	@Autowired
	ActivityMapper activityMapper;
	
	

	@Override
	public List<haipumi_activity> findAllActivity() {
		
		return activityMapper.findAllActivity();
	}

	@Override
	public int countAllActivity() {
		int r=0;
		r=activityMapper.countAllActivity();
		return r;
	}

	@Override
	public haipumi_activity addActivity(haipumi_activity activity) {
		haipumi_activity backactivity=null;
		backactivity=activityMapper.addActivity(activity);
		return backactivity;
	}

	@Override
	public haipumi_activity editActivity(haipumi_activity activity) {
		haipumi_activity backactivity=null;
		backactivity=activityMapper.editActivity(activity);
		return backactivity;
	}

	@Override
	public haipumi_activity findActivity(int acid) {
		return activityMapper.findActivity(acid);
	}

}
